package org.example.spring_ioc.controller;

import org.example.spring_ioc.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@RequestMapping("controller")
public class UserController {
    @RequestMapping("hi")
    public void sayHi() {
        System.out.println("Hi,UserController...");
    }
}
